package com.xiaohu.myspace.database.entity;
// default package

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * FavoriteInfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "FAVORITE_INFO", catalog = "myspace")
public class FavoriteInfo extends BaseEntity {

	private static final long serialVersionUID = 6340239558735611252L;
	// Fields

	private Integer id;
	private Integer favoriteType;
	private Integer favoriteId;
	private Integer userId;

	// Constructors

	/** default constructor */
	public FavoriteInfo() {
	}

	/** full constructor */
	public FavoriteInfo(Integer favoriteType, Integer favoriteId, Integer userId) {
		this.favoriteType = favoriteType;
		this.favoriteId = favoriteId;
		this.userId = userId;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "favorite_type", nullable = false)
	public Integer getFavoriteType() {
		return this.favoriteType;
	}

	public void setFavoriteType(Integer favoriteType) {
		this.favoriteType = favoriteType;
	}

	@Column(name = "favorite_id", nullable = false)
	public Integer getFavoriteId() {
		return this.favoriteId;
	}

	public void setFavoriteId(Integer favoriteId) {
		this.favoriteId = favoriteId;
	}

	@Column(name = "user_id", nullable = false)
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

}